package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;


/**
 * 活动折扣细节
 *
 * @author Administrator
 * @date 2023/03/13
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_activity_discount_detail")
public class ActivityDiscountDetail extends BaseEntity {

    /**
     * 折扣细则ID
     */
    @TableId
    private Long id;
    /**
     * 折扣方案ID
     */
    private Long discountId;
    /**
     * 菜品ID
     */
    private Long foodId;
    /**
     * 折扣
     */
    private BigDecimal discount;

    private Long sellerId;

    private String uniqueKey;

    @TableField(exist = false)
    private List<Long> foodList;

    @TableField(exist = false)
    private String foodName;


}
